// GET /api/user/permissions

const authData =
{
    "code": 200,
    "token":'aaaaa',
    "data": {
    "userInfo": {
        "id": 1,
            "username": "admin",
            "realName": "管理员",
            "avatar": "",
            "userType": "ADMIN"
    },
    "permissions": ["user:view", "user:add", "role:view"],
        "menuList": [
            {
                "id": 1,
                "path": "/dashboard",
                "name": "Dashboard",
                "component": "Layout",
                "meta": {
                    "title": "控制台",
                    "icon": "dashboard",
                    "alwaysShow": true
                },
                "children": [
                    {
                        "id": 2,
                        "path": "/index",
                        "name": "DashboardIndex",
                        "component": "views/Control",
                        "meta": {
                            "title": "首页",
                            "icon": "home"
                        }
                    }
                ]
            },
            {
                "id": 3,
                "path": "/user",
                "name": "User",
                "component": "Layout",
                "meta": {
                    "title": "用户管理",
                    "icon": "user",
                    "permission": "user:view"
                },
                "children": [
                    {
                        "id": 4,
                        "path": "/list",
                        "name": "UserList",
                        "component": "views/user/List",
                        "meta": {
                            "title": "用户列表",
                            "icon": "list",
                            "permission": "user:view"
                        }},
                    {
                        "id": 5,
                        "path": "/aichat",
                        "name": "AiChat",
                        "component": "views/user/AiChat",
                        "meta": {
                            "title": "AI助手",
                            "icon": "list",
                            "permission": "user:view"
                        }
                    }]
            },{
                "id": 6,
                "path": '/case',
                "name": "Case",
                "component": "Layout",
                "requiresAuth": "true",
                "meta": {
                    "title": "案件管理", "icon": "case", "permission": "case:view"
                },
                "children": [{
                    "path": '/caseList',
                    "name": "CaseList",
                    "requiresAuth": "true",
                    "component": 'views/case/CaseListView2',
                    "meta": {"title": '案件列表', "icon": 'list'}
                }, {
                    "path": '/caseApply',
                    "name": "CaseApply",
                    "component": 'views/case/CaseApply',
                    "requiresAuth": "true",
                    "meta": {"title": '案件申请', "icon": 'document-add'}
                }, {
                    "path": '/caseDetail/:id',
                    "name": "CaseDetail",
                    "component": 'views/case/CaseDetailView',
                    "requiresAuth": "true",
                    "props": "true",
                    "meta": {"title": '案件详情', "hidden": true}
                }, {
                    "path": '/caseEdit/:id',
                    "name": "CaseEdit",
                    "component": 'views/case/CaseEditView',
                    "requiresAuth": "true",
                    "props": "true",
                    "meta": {"title": '编辑案件', "hidden": true}
                }]

            }]
}
}
export default authData;